Skip to content

Instantly share code, notes, and snippets.

@saratrajput
saratrajput / mujoco_py_install_instructions.md
Created January 27, 2022 08:26
Mujoco and Mujoco-py Installation Instructions

Mujoco and Mujoco-py Installation Instructions

The steps are taken from this video and document with some small changes.

Steps

  1. Install Anaconda. Download it from this link.
cd Downloads/
sudo chmod +x Anaconda3-2021.11-Linux-x86_64.sh
./Anaconda3-2021.11-Linux-x86_64.sh
@Artefact2
Artefact2 / README.md
Last active May 14, 2024 21:35
GGUF quantizations overview

Which GGUF is right for me? (Opinionated)

Good question! I am collecting human data on how quantization affects outputs. See here for more information: ggerganov/llama.cpp#5962

In the meantime, use the largest that fully fits in your GPU. If you can comfortably fit Q4_K_S, try using a model with more parameters.

llama.cpp feature matrix

See the wiki upstream: https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix

@cmer81
cmer81 / cloudflareddns6.sh
Last active May 14, 2024 21:35
dynamic dns IPV6 script for Synology
#!/bin/sh
# cloudflareddns6.sh - dynamic dns IPV6 updater module for Synology
#
# Author:
# Cedric Mercier
#
# Version:
# 0.1
#
@jerrysu
jerrysu / cloudflare.php
Last active May 14, 2024 21:33
Cloudflare DDNS Provider for Synology DiskStation
#!/usr/bin/php -d open_basedir=/usr/syno/bin/ddns
<?php
/**
* This script is used to add Cloudflare as a service provider to DDNS settings on a Synology DiskStation.
*
* This file goes in `/usr/syno/bin/ddns/cloudflare.php`. Edit `/etc.defaults/ddns_provider.conf` and add
* the Cloudflare for it to appear in the "Service provider" list:
*
* [Cloudflare]
@modyari
modyari / VectorExtensions.cs
Created September 13, 2021 16:14
(Unity) Modifies a Vector's component and returns it
using UnityEngine;
public static class VectorExtensions
{
/// <summary>
/// Returns a modified version of the vector with one or more components modified
/// </summary>
/// <param name="x">X component to modify</param>
/// <param name="y">Y component to modify</param>
/// <returns>A modified version of the vector with the passed component configurations</returns>
@gtrabanco
gtrabanco / object-group-by.js
Last active May 14, 2024 21:30
Object.groupBy polyfill
if(typeof Object.groupBy === typeof undefined) {
Object.groupBy = (arr, callback) => {
return arr.reduce((acc = {}, ...args) => {
const key = callback(...args);
acc[key] ??= []
acc[key].push(args[0]);
return acc;
}, {})
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Clickable Swedish Keyboard Layout</title>
<style>
body {
display: flex;
justify-content: center;
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 14, 2024 21:30
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@kernelkaribou
kernelkaribou / cloudflare_dyndns_synology
Last active May 14, 2024 21:31
Used to regularly update a Cloudflare DNS record from your Synology NAS.
#!/bin/bash
####################################################################################
# Author: Kernelkaribou@github
#
# Purpose: Update a DNS record hosted at Cloudflare to represent network public IP.
# Based upon Cloudflare API v4
#
# Additional Notes: This will send notifications to Synology log center.
# Comment out writeLog lines if not desired or on Synology platform
@ibuildthecloud
ibuildthecloud / README.md
Last active May 14, 2024 21:29
k3s on WSL2

Instructions to hack up WSL2 on Windows 10 Build 18917 to run k3s (Kubernetes) and rio

Install WSL2

https://docs.microsoft.com/en-us/windows/wsl/wsl2-install

I already had Ubuntu-18.04 installed in wsl 1. So I just did wsl --set-version Ubuntu-18.04 2

Compile Kernel

Using Ubuntu 18.04 (I'm sure any distro will work), inside WSL2 download https://thirdpartysource.microsoft.com/download/Windows%20Subsystem%20for%20Linux%20v2/May%202019/WSLv2-Linux-Kernel-master.zip and extract to a folder. The latest version of the kernel source is available at (https://github.com/microsoft/WSL2-Linux-Kernel)